package com.itheima.dao;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author nglsk
 * @version v1.0
 * @date 2019/11/25 12:57
 * @description TODO
 **/
public interface OrderSettingDao {
    /**
     * 根据日期查询当前是否已有预约
     * @param orderDate
     * @return
     */
    Integer findCountByDate(@Param("orderDate") Date orderDate);

    /**
     * 更新预约设置信息
     * @param orderSetting
     */
    void edit(OrderSetting orderSetting);

    /**
     * 添加预约设置信息
     * @param orderSetting
     */
    void add(OrderSetting orderSetting);
}
